import request from '@/utils/request'
//栏目控制接口
export function sysColumnControlQuery(data) {
  return request({
    method: 'get',
    url: '/sysColumnControl/query',
    params: data,
  })
}

export function sysColumnControlQueryById(id) {
  return request({
    method: 'get',
    url: '/sysColumnControl/query/' + id,
  })
}

export function sysColumnControlAdd(data) {
  return request({
    method: 'post',
    url: '/sysColumnControl/add',
    data,
  })
}

export function sysColumnControlUpdate(data) {
  return request({
    method: 'post',
    url: '/sysColumnControl/update',
    data,
  })
}

export function sysColumnControlDelete(id) {
  return request({
    method: 'get',
    url: '/sysColumnControl/delete/' + id,
  })
}

export function sysColumnControlOpenApiQuery(data) {
  return request({
    method: 'get',
    url: '/sysColumnControl/openApi/query',
    params: data,
  })
}
//批量更新
export function sysColumnControlAddBatch(data) {
  return request({
    method: 'post',
    url: '/sysColumnControl/addBatch',
    data,
  })
}

//通过type批量删除
export function sysColumnControlDeleteByType(type) {
  return request({
    method: 'get',
    url: '/sysColumnControl/deleteByType/' + type,
  })
}
